/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.aptech.search;

import com.aptech.entity.Member1;
import com.aptech.session.Member1FacadeLocal;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Administrator
 */
@ManagedBean
@RequestScoped
public class SearchMemberBean {
    @EJB
    private Member1FacadeLocal member1Facade;
    private String field;
    private Object value;

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public List<Member1> getListmember() {
        return listmember;
    }

    public void setListmember(List<Member1> listmember) {
        this.listmember = listmember;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }
    private List<Member1> listmember;
    /** Creates a new instance of SearchMemberBean */
    public SearchMemberBean() {
    }
    
    public String searchmember()
    {
        listmember=member1Facade.SearchMember(field, value);
        return "ResultMember";
    }
}
